home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / DRDOSTIP.ZIP / 1408.TXT < prev    next >
Text File  |  1992-01-02  |  2KB  |  48 lines

  1. Document 1408
  2. COMSPEC MAPPING ON NOVELL NETWORK
  3. EM
  4.  
  5. Description:
  6. LOGIN SCRIPT FOR SYSTEM WITH BOTH COMPAQ DOS 3.31 AND DR DOS 6.0
  7.  
  8. If you are having problems with setting your Comspec command in
  9. your login script for DR DOS 6.0, here is an explanation and a
  10. solution.
  11.  
  12. Explanation:
  13. Many applications query DOS as to what version it is - DR DOS
  14. returns a value of MS DOS V3.31.  This "imitation of DOS"
  15. allows DR DOS to run applications that might otherwise reject a
  16. DOS value of greater than 5.0. This value is also important in
  17. that this can be used by some applications to indicate what type
  18. of disk structure they are likely to encounter. This is
  19. especially important for 3rd party disk utilities.
  20.  
  21. A problem can arise when the login script on the server is
  22. trying to set your Comspec based on the NetWare login script
  23. variables %OS and %OS_VERSION.  A typical use of this is: 
  24.  
  25.           Map Ins S2:=Servername/SYS:PUBLIC/%OS/%OS_VERSION
  26.  
  27. Both Compaq DOS 3.31 and DR DOS 3.31 will end up mapped to the
  28. same sub-directory, as they are both reporting to NetWare ( via
  29. the %os_version variable ) a DOS version of 3.31.
  30.  
  31. Solution:
  32.  
  33. This sample login script explains and implements a solution:
  34.  
  35. REM  THE FOLLOWING ESTABLISHES ENVIRONMENTAL VARIABLES
  36. REM  "OS" AND "VER." 
  37.  
  38. IF <OS> <> "DRDOS" THEN 
  39. BEGIN 
  40. DOS SET OS="%OS"
  41. DOS SET VER="%OS_VERSION"
  42. END
  43.  
  44. REM  NOW SET YOUR COMSPEC BASED ON THE ENVIRONMENT 
  45. REM  VARIABLES <OS> AND <VER>.
  46.  
  47. MAP INS S2:=Servername/SYS:PUBLIC/%<OS>/%<VER>
  48.